package controller;

import entity.Good;
import service.impl.GoodServiceImpl;

public class GoodController {
	GoodServiceImpl gsi = new GoodServiceImpl();
	
	public boolean save(Good good) {
		return gsi.save(good);
	}

	public boolean delete(Good good) {
		return gsi.delete(good);
	}

	public boolean update(Good good) {
		return gsi.update(good);
	}

	public Good selectById(Good good) {
		return gsi.selectById(good);
	}

	public Good[] selectAll() {
		return gsi.selectAll();
	}

	public Good selectByName(String name) {
		return gsi.selectByName(name);
	}

	public Good[] selectByPrice(double low, double high) {
		return gsi.selectByPrice(low, high);
	}

	public Good[] selectByDown() {
		return gsi.selectByDown();
	}

	public Good[] selectByQuantity() {
		return gsi.selectByQuantity();
	}


}
